<?php

class Roomtype extends EMongoDocument {

    public $hotel;
    public $allotmentAlert;
    public $bedConfiguration = array();
    public $maxPerRoom;
    public $numberOfRoom;
    public $order;
    public $roomDescription;
    public $roomFacilities = array();
    public $roomSize;
    public $roomSizeUnit;
    public $roomType;
    public $roomTypeName;
    public $view;
    public $cover_photo;
    public $created_by;
    public $updated_by;
    public $created_date;
    public $updated_date;
    public $status;

    public function attributeLabels() {
        return array(
            'hotel' => 'hotel',
            'allotmentAlert' => 'allotment Alert',
            'bedConfiguration' => 'bed Configuration',
            'maxPerRoom' => 'maxPerRoom',
            'numberOfRoom' => 'numberOfRoom',
            'order' => 'order',
            'roomDescription' => 'roomDescription',
            'roomFacilities' => 'roomFacilities',
            'roomSizeUnit' => 'roomSizeUnit',
            'roomSize' => 'roomSize',
            'roomType' => 'roomType',
            'roomTypeName' => 'roomTypeName',
            'view' => 'view',
            'cover_photo' => 'cover_photo',
            'created_by' => 'created_by',
            'updated_by' => 'updated_by',
            'created_date' => 'created_date',
            'updated_date' => 'updated_date',
            'status' => 'status'
        );
    }

    public function rules() {
        return array(
            /* array('personal_number, first_name, last_name', 'required'), */
            array('roomTypeName', 'required', 'on' => 'create,update'),
            array('status,hotel, allotmentAlert, bedConfiguration, maxPerRoom, numberOfRoom, order, roomSize,roomDescription, roomFacilities,roomSizeUnit, roomTypeName,roomType,view,cover_photo,created_by,updated_by,created_date,updated_date', 'safe'),
        );
    }

    public static function model($className = __CLASS__) {
        return parent::model($className);
    }

    public function getCollectionName() {
        return 'roomtypes';
    }

}

?>
